<? include"cek_sesi.php"; ?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Laporan Catatan Pelatihan Perusahaan</title>
<style type="text/css"></style>
<link href="../lib/styles.css" rel="stylesheet" type="text/css">

</head>

<body>
<p>

  <? include"../koneksi/koneksi.php"; ?>
</p>
<table style="border-collapse: collapse;" width="820" border="1" bordercolor="#cccccc" cellpadding="3" cellspacing="0" align="center">
  <tr>
    <td>

<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="16%"><img src="../gambar/logo_dic.gif" alt="logo" width="124" height="67" /></td>
        <td width="73%" class="texttitle02C"><div align="center" class="texttitle02E">
          <div align="left" class="texttitle02B">&nbsp;&nbsp;&nbsp;PT. PARDIC JAYA CHEMICALS</div>
        </div></td>
        <td width="11%" class="texttitle02C"><div align="center"><img src="../gambar/logo.png" alt="logo" width="67" height="66" /></div></td>
      </tr>
      <tr>
        <td colspan="3"><hr color="#CCCCCC" size="1" /></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr> 	  
        <td width="64%" height="35"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="2%">&nbsp;</td>
            <td width="15%" class="texttitle1ungu"><div align="left"></div></td>
            <td width="2%"><div align="center"></div></td>
            <td width="32%"><div align="left"></div></td>
            <td width="19%">&nbsp;</td>
            <td width="2%">&nbsp;</td>
            <td width="28%">&nbsp;</td>
          </tr>
          <tr>
		  <?
		  $header=mysql_query("select * from training t, instruktur i, karyawan k 
		  						where
								t.kd_instruktur=i.kd_instruktur and i.nik=k.nik and
								t.no_training='$no_training'");
		  $header2=mysql_fetch_array($header);
		  {
		  $nm_training=$header2[nm_training];
		  $tgl_training=$header2[tgl_training];
		  $jam_training=$header2[jam_training];
		  $nm_karyawan=$header2[nm_karyawan];
		  $tempat_training=$header2[tempat_training];
		  }
		  ?>
            <td>&nbsp;</td>
            <td class="texttitle1ungu"><div align="left">Tanggal Pelatihan </div></td>
            <td><div align="center">:</div></td>
            <td><div align="left"><? echo"$tgl_training"; ?></div></td>
            <td class="texttitle1ungu">Instruktur</td>
            <td><div align="center">:</div></td>
            <td><? echo"$nm_karyawan"; ?></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td valign="top" class="texttitle1ungu"><div align="left">Waktu</div></td>
            <td valign="top"><div align="center">:</div></td>
            <td valign="top"><div align="left"><? echo"$jam_training"; ?></div></td>
            <td valign="top" class="texttitle1ungu">Training</td>
            <td valign="top"><div align="center">:</div></td>
            <td valign="top"><div align="left"><? echo"$nm_training"; ?></div></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td valign="top" class="texttitle1ungu">Tempat</td>
            <td valign="top"><div align="center">:</div></td>
            <td valign="top"><? echo"$tempat_training"; ?></td>
            <td valign="top" class="texttitle1ungu">Jumlah Peserta </td>
            <td valign="top"><div align="center">:</div></td>
            <td valign="top">
	          <div align="left">
	            <?
	$hit_header=mysql_query("select k.nik from detail_training dt, training t,karyawan k 
				  where dt.no_training=t.no_training and k.nik=dt.nik and t.no_training='$no_training'");
	//$cek_hit=mysql_fetch_array($cek);
	$cek_header=mysql_num_rows($hit_header);
	{ echo"$cek_header"; }			   
	?>
	            </div></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td class="texttitle1ungu">&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td class="texttitle1ungu">&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td class="texttitle1ungu">&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td></td>
            <td colspan="6" height="10"></td>
          </tr>
          <tr>
            <td colspan="7">
			
              <table width="99%" border="1" align="center" style="border-collapse: collapse;" bordercolor="#cccccc">
                
                <tr bgcolor="#000080" class="textmenu4a">
                  <td width="9%"><div align="center">No</div></td>
                  <td width="26%"><div align="center">NIK</div></td>
                  <td width="27%"><div align="center">Nama</div></td>
                  <td width="38%"><div align="center">Seksi</div></td>
      </tr>
                <tr class="texttitle">
  <?
 $limit=200;
 if(empty($halaman)){
 $offset=0;
 $halaman=1;}
 else{
 $offset=($halaman-1) * $limit; }
 
 $tampil=mysql_query("select * from karyawan k, training t, seksi s, detail_training dt,
 					materi m, jobdesc_kualifikasi jk
					where
					k.kd_seksi=s.kd_seksi and
					dt.nik=k.nik and t.no_training=dt.no_training and m.kd_materi=jk.kd_materi and jk.nodet_jobdesc=t.nodet_jobdesc
					and	t.no_training='$no_training' order by k.nik asc
					limit $offset,$limit");
 $no=0;
 while($ada=mysql_fetch_array($tampil))
 {
 	if($j==0){
	echo"<tr bgcolor=#eeedee>";
	$j++;}
	else{
	echo"<tr bgcolor='#ffffff'>";
	$j--;}
	$no++;
?> 
                  <td class="texttitle14"><div align="center"><? echo"$no"; ?></div></td>
                  <td class="texttitle14"><div align="center"><? echo"$ada[nik]"; ?></td>
                  <td class="texttitle14"><div align="center"><? echo"$ada[nm_karyawan]"; ?></div></td>
                  <td class="texttitle14"><div align="center"><? echo"$ada[nm_seksi]"; ?></div>
      <div align="center"></div></td>
      </tr>
<? } ?>                
              </table>		  			  </td>
            </tr>
          <tr>
            <td colspan="7"></td>
            </tr>
          <tr>
            <td colspan="7"></td>
            </tr>
        </table>		</td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td>
<table width="99%" border="0" align="center" style="border-collapse: collapse;" bordercolor="#cccccc">   
<tr>
<?
$lihat2=mysql_query("select * from karyawan k, training t, seksi s, detail_training dt
					where
					k.kd_seksi=s.kd_seksi and
					dt.nik=k.nik and t.no_training=dt.no_training
					and	t.no_training='$no_training'");
$jumbaris=mysql_num_rows($lihat2);
?>
<td width="4%"><div align="left"><span class="texttitle14">&nbsp;Jumlah : <? echo"$jumbaris"; ?></span></div></td>
</tr>
</table>
	
	
	
	</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="31%">
          <div align="left" class="texttitle12"></div></td>
        <td width="36%"><div align="right" class="texttitle12">&nbsp;</div></td>
        <td width="33%">&nbsp;</td>
      </tr>
      <tr>
        <td class="texttitle12"><div align="left">APPROVED BY</div></td>
        <td class="texttitle12"><div align="left">CHECKED BY</div></td>
        <td class="texttitle12"><div align="left">PREPARED BY</div></td>
      </tr>
      <tr>
        <td><div align="left"></div></td>
        <td class="texttitle12"><div align="right" class="style14"></div></td>
        <td class="texttitle12">&nbsp;</td>
      </tr>
      <tr>
        <td height="29"><div align="left"></div></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
<?
$tampil2=mysql_query("select k.nm_karyawan from karyawan k,admin a
					where k.nik=a.nik and a.nik='$nomor_induk_karyawan'");
$hs2=mysql_fetch_array($tampil2);
{ ?> 	  
	  
        <td>(Eddy Murphi)<hr size="1" width="80%" align="left" /></td>
        <td>(Muh Hasan)<hr size="1" width="80%" align="left" /></td>
        <td>(<? echo"$hs2[nm_karyawan]"; ?>)<hr size="1" width="80%" align="left" /></td>
      </tr>
<? } ?>
      <tr>
        <td>DATE : </td>
        <td>DATE : </td>
        <td>DATE : </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>


</td>
  </tr>
</table>
</body>
</html>
